package com.huangwenshuo.futurestarschoolmanagement.mapper;

import com.huangwenshuo.futurestarschoolmanagement.pojo.po.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huangwenshuo.futurestarschoolmanagement.pojo.vo.CommentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huangwenshuo
 * @since 2021-03-20
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    List<CommentVo> getComByAid(Integer aid);

    void addComment(@Param("dto") Comment comment);

    List<CommentVo> getComByPage(@Param("page")Integer page,@Param("rows") Integer rows);

    int getComTotal();

    void delCid(Integer cid);
}
